package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 设备、电磁阀操作记录表
 * </p>
 *
 * @author fei.zhang
 * @since 2023-08-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_dtu_valve_record")
@ApiModel(value="DtuValveRecord对象", description="设备、电磁阀操作记录表")
public class DtuValveRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "dtu.id")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "电磁阀id")
    @TableField("valve_id")
    private Integer valveId;

    @ApiModelProperty(value = "事件 0:解绑, 1:绑定")
    @TableField("event")
    private Integer event;

    @ApiModelProperty(value = "设备绑定渠道, 1-手动")
    @TableField("bind_channel")
    private Integer bindChannel;

    @ApiModelProperty(value = "操作人编码")
    @TableField("operation_person_code")
    private String operationPersonCode;

    @ApiModelProperty(value = "操作人名称")
    @TableField("operation_person_name")
    private String operationPersonName;

    @ApiModelProperty(value = "备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "电磁阀名称")
    @TableField(exist = false)
    private String valveName;

    @ApiModelProperty(value = "电磁阀型号")
    @TableField(exist = false)
    private String valveModel;

    @ApiModelProperty(value = "电磁阀材质")
    @TableField(exist = false)
    private String valveMaterial;


    @ApiModelProperty(value = "电磁阀厂家")
    @TableField(exist = false)
    private String valveManufacturer;

    @ApiModelProperty(value = "电磁阀有效期")
    @TableField(exist = false)
    private String valveValidity;

}
